<?php

namespace App\Ship\Traits;

use App\Containers\AppSection\Project\Tasks\CheckProjectModerationStatus;

trait ModerationStatusPermissionTrait
{
    public function projectIsChecking(): bool
    {
        return app(CheckProjectModerationStatus::class)->run($this->id, ['projects_checking'], true);
    }

    public function projectIsReturned(): bool
    {
        return app(CheckProjectModerationStatus::class)->run($this->id, ['projects_returned'], true);
    }

    public function projectIsNotModerated(): bool
    {
        return app(CheckProjectModerationStatus::class)->run($this->id, ['projects_not_moderated'], true);
    }
}
